<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/issue.css" rel="stylesheet" type="text/css"/>
</block>
<block name="header">
    <include file="Public/nav" />
</block>
<block name="body">


<div class="content-body col-md-12">
        <h2 class="content-title">
            {$content.title}
        </h2>
        <hr/>
        <div class="row">
            <div class="col-md-4">
                <div class="thumbnail">
                    <img src="{$content.cover_id|getThumbImageById=350,262}"/>
                </div>
            </div>
            <div class="col-md-8 ">
                <div class="row">

                    <div class="col-md-8">
                        <ul class="operation clearfix">
                            <li><i class="icon-eye-open"></i>{$content.view_count}</li>
                            <li>{:Hook('support',array('table'=>'issue_content','row'=>$content['id'],'app'=>'Issue','uid'=>$content['uid'],'jump'=>'issue/index/issuecontentdetail'))}</li>
                            <li><i class="icon-comments-alt"></i>{$content.reply_count}</li>
                        </ul>

                    </div>
                    <div class="col-md-4">
                        <div class="pull-right">
                            {:W('Common/Share/detailShare')}
                        </div>

                    </div>

                </div>
                <div class="row row-box1">
                    <div class="col-md-2">
                        <img ucard="{$content.user.id}" src="{$content.user.avatar64}" class="avatar-img"/>
                        <br/>
                        <a href="{$content.user.space_url}"> {$content.user.nickname} </a>
                    </div>
                    <div class="col-md-8">

                        <div class="signature word-wrap">
                            <div class="triangle"></div>
                            <div class="triangle_left"></div>
                            <eq name="content.user.signature" value="">{:L('_NO_MIND_')}</eq>
                            {$content.user.signature}
                        </div>
                    </div>
                </div>
                <div class="row" style="margin-top: 40px">
                    <div class="col-md-4">
                        <neq name="content.url" value="">
                        <a class="btn btn-primary " target="_blank" href="{$content.url}" ><i class="glyphicon glyphicon-cloud"></i>&nbsp;{:L('_VISIT_')}</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</neq>
                        <if condition="($content['uid'] eq is_login()) OR check_auth('editIssueContent')">

                            <a class="btn btn-primary " href="{:U('edit',array('id'=>$content['id']))}" style="margin-right: 25px;" ><i class="glyphicon glyphicon-pencil"></i>&nbsp;{:L('_EDIT_')}</a>
                        </if>
                       {:W('Weibo/Share/shareBtn',array('param'=>array('app'=>'Issue','model'=>'IssueContent','method'=>'find','id'=>$content['id'],'img'=>get_cover($content['cover_id'],'path'),'from'=>L('_MODULE_'),'site_link'=>U('issue/index/issuecontentdetail',array('id'=>$content['id']))),'text'=>L('_SHARE_'),'css'=>array('class'=>'btn btn-primary')))}
                    </div>
                    <div class="col-md-8">
                        <div class="pull-right" style="color: #999">
                            {:L('_PUBLISH_TIME_')}：  {$content.create_time|friendlyDate} &nbsp;&nbsp;
                            {:L('_UPDATE_TIME_')}： {$content.update_time|friendlyDate}
                        </div>
                    </div>
               </div>
           </div>
        </div>
    <hr/>
        <div>
            <h3>{:L('_INTRO_')}</h3>
            {$content.content|render}
        </div>
    <div>
    {:hook('localComment', array('path'=>"Issue/issueContent/$content[id]", 'uid'=>$content['uid'],'count_model'=>'issue_content','count_field'=>'reply_count','this_url'=>'Issue/Index/issueContentDetail'))}
    </div>
</div>


    <script type="text/javascript" charset="utf-8" src="__STATIC__/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
    <link rel="stylesheet" type="text/css" href="__STATIC__/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css"/>
    <script type="text/javascript">
        SyntaxHighlighter.all();
    </script>

    <include file="_box"/>
</block>


